import request from "./request"
export const JinPingAPI = () => request.get("/products/recommend")
export const ReMenAPI = () => request.get("/products/hot")
export const UserProfilesAPI = () => request.get("/shop/userProfiles")
export const GoodsDetailAPI = (id) => request.get(`/products/${id}`)

import qs from 'qs'
// 获取验证码
export const SendSMSAPI = (params) => request.post("/sendSMS", qs.stringify(params))
export const PhoneReginAPI = params => request.post("/phoneRegin", qs.stringify(params));
export const WeixinLoginApi = (params) =>
    request.post("/wechatUsers/PCLogin", qs.stringify(params));
export const BindingApi = (params) =>
    request.post("/wechatUsers/binding", qs.stringify(params));
export const addToCartAPI = params => request.post("/shop/carts/add", qs.stringify(params));